<?php

namespace App\Enum;


class UserEnum
{

    /**
     * 性别
     */
    const MAN = 1; // 男
    const WOMAN = 2; // 女
    const SECRECY = 3; // 保密



    public static $sexMessage = [
        self::MAN => '男',
        self::WOMAN => '女',
        self::SECRECY => '保密',

    ];


    public static function sexMessage($code)
    {
        return self::$sexMessage[$code];
    }




}
